for (i = 0; i < ret; i++) {
memcpy(&(ptr[index].uuid), info[i].handle, sizeof(xen_domain_handle_t));
ptr[index].domid = info[i].domain;
- printf("domain %d [ret %d]\n", ptr[index].domid, ret);
if (info[i].flags & XEN_DOMINF_dying)
ptr[index].dying = 1;
hvm = is_hvm(ctx, domid);
if (hvm) {
- if (libxl_wait_for_device_model(ctx, domid, "running", 0,0) < 0) {
+ if (libxl_wait_for_device_model(ctx, domid, "running", NULL, NULL) < 0) {
return -1;
}
path = libxl_sprintf(ctx, "/local/domain/0/device-model/%d/state", domid);
pcidev->bus, pcidev->dev, pcidev->func);
path = libxl_sprintf(ctx, "/local/domain/0/device-model/%d/command", domid);
xs_write(ctx->xsh, XBT_NULL, path, "pci-ins", strlen("pci-ins"));
- if (libxl_wait_for_device_model(ctx, domid, "pci-inserted", 0,0) < 0)
+ if (libxl_wait_for_device_model(ctx, domid, "pci-inserted", NULL, NULL) < 0)
XL_LOG(ctx, XL_LOG_ERROR, "Device Model didn't respond in time");
path = libxl_sprintf(ctx, "/local/domain/0/device-model/%d/parameter", domid);
vdevfn = libxl_xs_read(ctx, XBT_NULL, path);
hvm = is_hvm(ctx, domid);
if (hvm) {
- if (libxl_wait_for_device_model(ctx, domid, "running", 0,0) < 0) {
+ if (libxl_wait_for_device_model(ctx, domid, "running", NULL, NULL) < 0) {
return -1;
}
path = libxl_sprintf(ctx, "/local/domain/0/device-model/%d/state", domid);
pcidev->bus, pcidev->dev, pcidev->func);
path = libxl_sprintf(ctx, "/local/domain/0/device-model/%d/command", domid);
xs_write(ctx->xsh, XBT_NULL, path, "pci-rem", strlen("pci-rem"));
- if (libxl_wait_for_device_model(ctx, domid, "pci-removed", 0,0) < 0) {
+ if (libxl_wait_for_device_model(ctx, domid, "pci-removed", NULL, NULL) < 0) {
XL_LOG(ctx, XL_LOG_ERROR, "Device Model didn't respond in time");
return -1;
}